import {ajax} from './util.js'

let btn =  document.querySelector('button');
let userInp =  document.getElementsByName('username');
let pwdInp =  document.getElementsByName('pwd');
btn.onclick = function(){
    ajax.post('http://localhost/login',{username:userInp[0].value,pwd:pwdInp[0].value},(data)=>{
        console.log(data);
    });
}